package com.ssy.lingxi.member.merchant.model.vo.manage.request;

import com.ssy.lingxi.common.model.vo.PageVO;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 根据商城类型分页查询会员接口参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-09-16
 */
public class MemberManagePageByShopTypeVO extends PageVO implements Serializable {
    private static final long serialVersionUID = 3163365958730229360L;

    /**
     * 商城类型：1-企业商城，2-积分商城，3-渠道商城，4-渠道自有商城，5-渠道积分商城
     */
    @NotNull(message = "商城类型不能为空")
    @Min(value = 1, message = "商城类型参数值范围为 1-5")
    @Max(value = 5, message = "商城类型参数值范围为 1-5")
    private Integer shopType;

    /**
     * 会员名称
     */
    private String name;

    /**
     * 会员类型Id
     */
    private Long memberTypeId;

    /**
     * 会员id与角色id列表
     */
    private List<MemberAndRoleIdVO> members;

    /**
     * 会员等级
     */
    private Integer level;

    /**
     * 会员角色Id
     */
    private Long roleId;

    public Integer getShopType() {
        return shopType;
    }

    public void setShopType(Integer shopType) {
        this.shopType = shopType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getMemberTypeId() {
        return memberTypeId;
    }

    public void setMemberTypeId(Long memberTypeId) {
        this.memberTypeId = memberTypeId;
    }

    public List<MemberAndRoleIdVO> getMembers() {
        return members;
    }

    public void setMembers(List<MemberAndRoleIdVO> members) {
        this.members = members;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
